import scrapy
 
# 导入scrapy_splash内的Request
from scrapy_splash import SplashRequest
	
	
class JobSpider(scrapy.Spider):
    	name = "job"
    	allowed_domains = ["www.techlabplt.com"]
   		start_urls = ["http://www.techlabplt.com:8080/BD-PC/zhaopin.html"]
 
    	def start_requests(self):
        	yield SplashRequest(self.start_urls[0],
                            callback=self.parse,
                            args={'wait': 5},  # 最大超时时间，设置为5秒
                            endpoint='render.html'  # splash服务的固定参数
                            )
 
    	def parse(self, response):
        	print('网站内容：', response.text)
